//
//  LDJ_ShopDetailViewController.m
//  Pianke
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 dada. All rights reserved.
//

#import "LDJ_ShopDetailViewController.h"

@interface LDJ_ShopDetailViewController ()

@end

@implementation LDJ_ShopDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.titleLabel.text = @"Shop";
    
    //图标
    UIImageView *img = [[UIImageView alloc]init];
    img.image = [UIImage imageNamed:@"iconfont-gouwuche2.png"];
//    img.center = CGPointMake(SCREEN_WIDTH - SCREEN_WIDTH/5, self.navigationController.navigationBar.frame.size.height /2);
    [self.rightView addSubview:img];
    [img mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.right.mas_equalTo(-5 * EACH_WIDTH);
        make.top.mas_equalTo(10 * EACH_HEIGHT);
        make.size.mas_equalTo(CGSizeMake(30 * EACH_WIDTH, 30 * EACH_HEIGHT));
    }];
    
    UIWebView *web = [[UIWebView alloc]init];
    [self.view addSubview:web];
    
    NSURLRequest *request = [NSURLRequest requestWithURL:self.shopUrl];
    [web loadRequest:request];
    
    [web mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH, SCREEN_HEIGHT));
        make.top.left.mas_equalTo(0);
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
